{{Extend "layout"}}
{{Block "title"}}{{"验证日志管理"|T}}{{/Block}}
{{Block "breadcrumb"}}
{{Super}}
<li class="active">{{"验证日志管理"|T}}</li>
{{/Block}}
{{Block "main"}}
<div class="row">
	<div class="col-md-12">
		<div class="block-flat">
			<div class="header">			
				<h3>{{"验证日志列表"|T}}</h3>
			</div>
			<div class="content">
				<div class="table-responsive">
				<table class="table no-border hover">
					<thead class="no-border">
						<tr>
							<th style="width:2%;"><strong>ID</strong></th>
							<th><strong>{{"许可证ID"|T}}</strong></th>
							<th><strong>{{"IP"|T}}</strong></th>
							<th><strong>{{"域名"|T}}</strong></th>
							<th><strong>{{"机器码"|T}}</strong></th>
							<th><strong>{{"系统架构"|T}}</strong></th>
							<th><strong>{{"访问网址"|T}}</strong></th>
							<th><strong>{{"验证状态"|T}}</strong></th>
							<th><strong>{{"验证结果"|T}}</strong></th>
							<th><strong>{{"操作"|T}}</strong></th>
							<th style="width:15%;"><strong>{{"创建时间"|T}}</strong></th>
							<th style="width:15%;" class="text-center"><strong>{{"操作"|T}}</strong></th>
						</tr>
					</thead>
					<tbody class="no-border-y">
                        {{range $k,$v := Stored.listData}}
						<tr>
							<td>{{$v.Id}}</td>
							<td>{{$v.LicenseId}}</td>
							<td>{{$v.Ip}}</td>
							<td>{{$v.Domain}}</td>
							<td>{{$v.MachineId}}</td>
							<td>{{$v.Os}}/{{$v.Arch}}</td>
							<td>{{$v.ClientUrl}}</td>
							<td>
								{{- if eq $v.VerifyStatus "valid" -}}
								<i class="fa fa-check text-success" data-toggle="tooltip" title="{{"通过验证"|T}}"></i>
								{{- else -}}
								<i class="fa fa-times text-danger" data-toggle="tooltip" title="{{"验证失败"|T}}"></i>
								{{- end -}}
							</td>
							<td>{{$v.VerifyResult}}</td>
							<td>{{$v.Pipe}}</td>
							<td>{{(Date $v.Created).Format "2006-01-02 15:04:05"}}</td>
							<td class="text-center">
							<a class="label label-danger" href="__BACKEND__/official/verify_log_delete?id={{$v.Id}}" onclick="return confirm('{{"真的要删除吗？"|T}}');" title="{{"删除"|T}}" data-toggle="tooltip"><i class="fa fa-times"></i></a>
							</td>
						</tr>
                        {{end}}
					</tbody>
				</table>		
				</div>
				{{Stored.pagination.Render}}
			</div>
		</div>				
	</div>
</div>
{{/Block}}